package com.lhhu.demo.controller;

import com.lhhu.demo.bean.BookCounts;
import com.lhhu.demo.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther 虎
 * @Data 2021/3/11 20:01
 * @Version 1.0
 */
@RestController
public class StatisticController {
    @Autowired
    private StatisticService statisticService;

    @GetMapping("/getEveryBookCounts")
    public BookCounts getEveryBookCounts(){
        return statisticService.getEveryBookCounts();
    }
}
